﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="DaYinZD.aspx.cs" Inherits="Web.Pages.QuShui.DiXiaS.ShouFeiGL.DaYinZD" Theme="Default"%>

<%@ Register Assembly="DevExpress.Web.v15.2, Version=15.2.9.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" Namespace="DevExpress.Web" TagPrefix="dx" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title></title>
     <script src="../../../../JS/jquery.js" type="text/javascript"></script>
    <script src="../../../../JS/AddEditCancel.js" type="text/javascript"></script>
</head>
<body>
    <form id="form1" runat="server">
        <asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>
        <div class="tabletitle1" align="center">
            打印发票
        </div>
        <%--<div style="display: none;">
            <dx:ASPxHiddenField ID="hdCollection" ClientInstanceName="hdCollection" runat="server"></dx:ASPxHiddenField>
            <dx:ASPxCallback ID="ASPxCallback1" ClientInstanceName="ASPxCallback1" runat="server" OnCallback="ASPxCallback1_Callback" ClientSideEvents-CallbackComplete="function(s,e){ASPxCallback1Complete(e.result);}"></dx:ASPxCallback>
        </div>--%>
        <asp:UpdatePanel ID="updatePanel1" runat="server">
            <ContentTemplate>
                <div>
                    <dx:ASPxPageControl ID="ASPxPageControl1" runat="server" ActiveTabIndex="0" Width="98%" AutoPostBack="false">
                        <TabPages>
                            <dx:TabPage Text="一般账单打印">
                                <ContentCollection>
                                    <dx:ContentControl>
                                        <div>
                                            <div>
                                                <table>
                                                    <tr>
                                                        <td style="width: 7%;"><span style="font-size: 12px;">用户号：</span></td>
                                                        <td>
                                                            <dx:ASPxTextBox runat="server" ID="txtYongHuH" Width="45%" ClientInstanceName="txtYongHuH">
                                                                <ClientSideEvents KeyUp="function(s,e){inputNum(s);}" />
                                                            </dx:ASPxTextBox>
                                                        </td>
                                                        <td style="width: 7%;"><span style="font-size: 12px;">水量年月：</span></td>
                                                        <td>
                                                            <dx:ASPxTextBox runat="server" ID="txtShuiLiangYM" Width="45%" ClientInstanceName="txtShuiLiangYM">
                                                                <ClientSideEvents KeyUp="function(s,e){inputNum(s);}" />
                                                            </dx:ASPxTextBox>
                                                        </td>
                                                        <td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                                            <dx:ASPxLoadingPanel runat="server" ID="LoadPanel11" ClientInstanceName="LoadPanel" Text="正在查询"></dx:ASPxLoadingPanel>
                                                            <dx:ASPxButton runat="server" ID="btnChaXunTab1" Text="查询"   OnClick="btnChaXunTab1_Click">
                                                                <ClientSideEvents Click="function(s,e){LoadPanel.Show();}" />
                                                            </dx:ASPxButton>
                                                        </td>
                                                    </tr>
                                                </table>
                                            </div>
                                            <dx:ASPxGridView ID="gvGridTab1" ClientInstanceName="gvGridTab1" runat="server" AutoGenerateColumns="False" KeyFieldName="ID"
                                                ClientIDMode="AutoID" Settings-ShowVerticalScrollBar="true" Width="100%" EnableCallBacks="true">
                                                <Columns>
                                                    <dx:GridViewDataTextColumn FieldName="" Caption="选择" Width="">
                                                    </dx:GridViewDataTextColumn>
                                                    <dx:GridViewDataTextColumn FieldName="S_YONGHUH" Caption="用户号" Width="">
                                                    </dx:GridViewDataTextColumn>
                                                    <dx:GridViewDataTextColumn FieldName="S_YONGHUM" Caption="用户名" Width="">
                                                    </dx:GridViewDataTextColumn>
                                                    <dx:GridViewDataTextColumn FieldName="N_JINE" Caption="金额" Width="">
                                                    </dx:GridViewDataTextColumn>
                                                    <dx:GridViewDataTextColumn FieldName="" Caption="缴费人" Width="">
                                                    </dx:GridViewDataTextColumn>
                                                    <dx:GridViewDataTextColumn FieldName="S_DIZHI" Caption="用户地址" Width="">
                                                    </dx:GridViewDataTextColumn>
                                                    <dx:GridViewDataTextColumn FieldName="S_YOUBIAN" Caption="邮编" Width="">
                                                    </dx:GridViewDataTextColumn>
                                                    <dx:GridViewDataTextColumn FieldName="S_KAIHUH" Caption="银行账号" Width="">
                                                    </dx:GridViewDataTextColumn>
                                                     <dx:GridViewDataTextColumn FieldName="S_KAIHUHM" Caption="开户户名" Width="">
                                                    </dx:GridViewDataTextColumn>
                                                    <dx:GridViewDataTextColumn FieldName="S_KAIHUYH" Caption="开户银行" Width="">
                                                    </dx:GridViewDataTextColumn>
                                                    <dx:GridViewDataTextColumn FieldName="S_SHUIBIAOBH" Caption="水表编号" Width="">
                                                    </dx:GridViewDataTextColumn>
                                                    <dx:GridViewDataTextColumn FieldName="S_YUANSHUIBH" Caption="老表号" Width="">
                                                    </dx:GridViewDataTextColumn>
                                                    <dx:GridViewDataTextColumn FieldName="" Caption="本月抄码" Width="">
                                                    </dx:GridViewDataTextColumn>
                                                    <dx:GridViewDataTextColumn FieldName="" Caption="本月水量" Width="">
                                                    </dx:GridViewDataTextColumn>
                                                    <dx:GridViewDataTextColumn FieldName="N_JIHUAJE" Caption="单价" Width="">
                                                    </dx:GridViewDataTextColumn>
                                                    <dx:GridViewDataTextColumn FieldName="" Caption="到账金额" Width="">
                                                    </dx:GridViewDataTextColumn>
                                                    <dx:GridViewDataTextColumn FieldName="" Caption="大写到账金额" Width="">
                                                    </dx:GridViewDataTextColumn>
                                                    <dx:GridViewDataTextColumn FieldName="" Caption="发票号码" Width="">
                                                    </dx:GridViewDataTextColumn>
                                                    <dx:GridViewDataTextColumn FieldName="" Caption="打印日期" Width="">
                                                    </dx:GridViewDataTextColumn>
                                                    <dx:GridViewDataTextColumn FieldName="" Caption="托收标志" Width="">
                                                    </dx:GridViewDataTextColumn>
                                                    <dx:GridViewDataTextColumn FieldName="" Caption="isprint" Width="">
                                                    </dx:GridViewDataTextColumn>
                                                    <dx:GridViewDataTextColumn FieldName="" Caption="发票号码2" Width="">
                                                    </dx:GridViewDataTextColumn>
                                                    <dx:GridViewDataTextColumn FieldName="" Caption="打印日期2" Width="">
                                                    </dx:GridViewDataTextColumn>
                                                    <dx:GridViewDataTextColumn FieldName="" Caption="缴费人2" Width="">
                                                    </dx:GridViewDataTextColumn>
                                                    <dx:GridViewDataTextColumn FieldName="" Caption="用户号2" Width="">
                                                    </dx:GridViewDataTextColumn>
                                                    <dx:GridViewDataTextColumn FieldName="" Caption="用户名2" Width="">
                                                    </dx:GridViewDataTextColumn>
                                                    <dx:GridViewDataTextColumn FieldName="" Caption="本月抄码2" Width="">
                                                    </dx:GridViewDataTextColumn>
                                                    <dx:GridViewDataTextColumn FieldName="" Caption="本月水量2" Width="">
                                                    </dx:GridViewDataTextColumn>
                                                    <dx:GridViewDataTextColumn FieldName="" Caption="单价2" Width="">
                                                    </dx:GridViewDataTextColumn>
                                                    <dx:GridViewDataTextColumn FieldName="" Caption="到账金额2" Width="">
                                                    </dx:GridViewDataTextColumn>
                                                    <dx:GridViewDataTextColumn FieldName="" Caption="大写到账金额2" Width="">
                                                    </dx:GridViewDataTextColumn>
                                                    <dx:GridViewDataTextColumn FieldName="" Caption="用户名3" Width="">
                                                    </dx:GridViewDataTextColumn>
                                                    <dx:GridViewDataTextColumn FieldName="" Caption="水量年月" Width="">
                                                    </dx:GridViewDataTextColumn>
                                                    <dx:GridViewDataTextColumn FieldName="" Caption="费用编号" Width="">
                                                    </dx:GridViewDataTextColumn>
                                                     <dx:GridViewDataTextColumn FieldName="" Caption="水量年月2" Width="">
                                                    </dx:GridViewDataTextColumn>
                                                    <dx:GridViewDataTextColumn FieldName="" Caption="费用编号2" Width="">
                                                    </dx:GridViewDataTextColumn>
                                                </Columns>
                                                <Settings VerticalScrollBarMode="Visible" HorizontalScrollBarMode="Auto" VerticalScrollableHeight="500" />
                                                <SettingsPager Mode="EndlessPaging" PageSize="100" />
                                                <Settings ShowFooter="True" />
                                                <SettingsBehavior AllowFocusedRow="True"  ColumnResizeMode="Control" />
                                                <SettingsBehavior ProcessFocusedRowChangedOnServer="false" />
                                                <%--<ClientSideEvents Init="function(s,e){AdjustSize(300,gvGridTab1);}" />--%>
                                            </dx:ASPxGridView>
                                        </div>
                                        <br />
                                        <hr />
                                        <div>
                                            <table style="text-align: right; width: 100%;">
                                                <tr>
                                                     <td style="width: 10%;"><span style="font-size: 12px;">打印日期：</span></td>
                                                   
                                                    <td style="width: 20%;">
                                                        <dx:ASPxDateEdit runat="server" ID="deDaYinRQ1" ClientInstanceName="deDaYinRQ1">
                                                            <CalendarProperties ClearButtonText="清除" TodayButtonText="今天"></CalendarProperties>
                                                        </dx:ASPxDateEdit>
                                                    </td>
                                                    <td style="width: 10%;"><span style="font-size: 12px;">下一张发票号码：</span></td>
                                                    <td style="width: 20%;">
                                                        <dx:ASPxTextBox runat="server" ID="txtFaPiao" Width="80%" ClientInstanceName="txtFaPiao"></dx:ASPxTextBox>
                                                    </td>
                                                    <td>
                                                        <dx:ASPxButton runat="server" ID="btnYuLanTab1" Text="预览" >
                                                        </dx:ASPxButton>
                                                    </td>
                                                    <td>
                                                        <dx:ASPxButton runat="server" ID="btnDaYinTab1" Text="打印" >
                                                        </dx:ASPxButton>
                                                    </td>
                                                </tr>
                                            </table>
                                        </div>
                                    </dx:ContentControl>
                                </ContentCollection>
                            </dx:TabPage>
                            <dx:TabPage Text="补收打印">
                                <ContentCollection>
                                    <dx:ContentControl>
                                        <div>
                                            <table style="text-align: right; width: 50%;margin-left:20%;height:270px;">
                                                <tr>
                                                    <td style="width: 10%;"><span style="font-size: 12px;">补收类型：</span></td>
                                                    <td style="width: 15%;">
                                                        <dx:ASPxComboBox ID="cbmBuShouLX" ClientInstanceName="cbmBuShouLX" runat="server" Width="80%">
                                                            <Items>
                                                                <dx:ListEditItem Text="一般补收" Value="1" />
                                                                <dx:ListEditItem Text="稽查科补收" Value="2" />
                                                            </Items>
                                                        </dx:ASPxComboBox>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td style="width: 10%;"><span style="font-size: 12px;">用户号：</span></td>
                                                    <td style="width: 20%;">
                                                        <dx:ASPxTextBox runat="server" ID="txtYongHuHTab2" Width="80%" ClientInstanceName="txtYongHuHTab2"></dx:ASPxTextBox>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td style="width: 10%;"><span style="font-size: 12px;">用户名：</span></td>
                                                    <td style="width: 20%;">
                                                        <dx:ASPxTextBox runat="server" ID="txtYongHuMTab2" Width="80%" ClientInstanceName="txtYongHuMTab2"></dx:ASPxTextBox>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td style="width: 10%;"><span style="font-size: 12px;">单价：</span></td>
                                                    <td style="width: 20%;">
                                                        <dx:ASPxTextBox runat="server" ID="txtDanJiaTab2" Width="80%" ClientInstanceName="txtDanJiaTab2"></dx:ASPxTextBox>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td style="width: 10%;"><span style="font-size: 12px;">水量：</span></td>
                                                    <td style="width: 20%;">
                                                        <dx:ASPxTextBox runat="server" ID="txtShuiLiangTab2" Width="80%" ClientInstanceName="txtShuiLiangTab2"></dx:ASPxTextBox>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td style="width: 10%;"><span style="font-size: 12px;">金额：</span></td>
                                                    <td style="width: 20%;">
                                                        <dx:ASPxTextBox runat="server" ID="txtJinETab2" Width="80%" ClientInstanceName="txtJinETab2"></dx:ASPxTextBox>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td style="width: 10%;"><span style="font-size: 12px;">打印日期：</span></td>
                                                    <td style="width: 20%;">
                                                         <dx:ASPxDateEdit runat="server" ID="deDaYinRQ2" ClientInstanceName="deDaYinRQ2">
                                                            <CalendarProperties ClearButtonText="清除" TodayButtonText="今天"></CalendarProperties>
                                                        </dx:ASPxDateEdit> 
                                                    </td>
                                                </tr>
                                               <%-- <tr>
                                                    <td style="width: 10%;"><span style="font-size: 12px;">下一张发票号：</span></td>
                                                    <td style="width: 20%;">
                                                        <dx:ASPxTextBox runat="server" ID="txtFaPiaoTab2" Width="80%" ClientInstanceName="txtFaPiaoTab2"></dx:ASPxTextBox>
                                                    </td>
                                                </tr>--%>
                                                <tr>
                                                    <td>
                                                        <dx:ASPxButton runat="server" ID="btnYuLanTab2" Text="预览">
                                                        </dx:ASPxButton>
                                                    </td>
                                                    <td style="float:left;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                                        <dx:ASPxButton runat="server" ID="btnDaYinTab2" Text="打印">
                                                        </dx:ASPxButton>
                                                    </td>
                                                </tr>
                                            </table>
                                        </div>
                                    </dx:ContentControl>
                                </ContentCollection>
                            </dx:TabPage>
                            <dx:TabPage Text="补打已打印过的账单">
                                <ContentCollection>
                                    <dx:ContentControl>
                                        <div>
                                              <div>
                                                <table>
                                                    <tr>
                                                        <td style="width: 7%;"><span style="font-size: 12px;">用户号：</span></td>
                                                        <td>
                                                            <dx:ASPxTextBox runat="server" ID="txtYongHuHTab3" Width="45%" ClientInstanceName="txtYongHuHTab3">
                                                                <ClientSideEvents KeyUp="function(s,e){inputNum(s);}" />
                                                            </dx:ASPxTextBox>
                                                        </td>
                                                        <td style="width: 7%;"><span style="font-size: 12px;">水量年月：</span></td>
                                                        <td>
                                                            <dx:ASPxTextBox runat="server" ID="txtShuiLiangYMTab3" Width="45%" ClientInstanceName="txtShuiLiangYMTab3">
                                                                <ClientSideEvents KeyUp="function(s,e){inputNum(s);}" />
                                                            </dx:ASPxTextBox>
                                                        </td>
                                                        <td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                                            <dx:ASPxLoadingPanel runat="server" ID="LoadPanel1" ClientInstanceName="LoadPanel1" Text="正在查询"></dx:ASPxLoadingPanel>
                                                            <dx:ASPxButton runat="server" ID="btnChaXuntab3" Text="查询"  OnClick="btnChaXuntab3_Click">
                                                                <ClientSideEvents Click="function(s,e){LoadPanel1.Show();}" />
                                                            </dx:ASPxButton>
                                                        </td>
                                                    </tr>
                                                </table>
                                            </div> 
                                            <dx:ASPxGridView ID="gvGridTab3" ClientInstanceName="gvGridTab3" runat="server" AutoGenerateColumns="False" KeyFieldName="ID"
                                                ClientIDMode="AutoID" Settings-ShowVerticalScrollBar="true" Width="100%" EnableCallBacks="true">
                                                <Columns>
                                                    <dx:GridViewDataTextColumn FieldName="" Caption="选择" Width="15%">
                                                    </dx:GridViewDataTextColumn>
                                                    <dx:GridViewDataTextColumn FieldName="" Caption="用户号" Width="15%">
                                                    </dx:GridViewDataTextColumn>
                                                    <dx:GridViewDataTextColumn FieldName="" Caption="用户名" Width="35%">
                                                    </dx:GridViewDataTextColumn>
                                                    <dx:GridViewDataTextColumn FieldName="" Caption="金额" Width="15%">
                                                    </dx:GridViewDataTextColumn>
                                                    <dx:GridViewDataTextColumn FieldName="" Caption="大写金额" Width="15%">
                                                    </dx:GridViewDataTextColumn>
                                                    <dx:GridViewDataTextColumn FieldName="" Caption="缴费人" Width="15%">
                                                    </dx:GridViewDataTextColumn>
                                                    <dx:GridViewDataTextColumn FieldName="" Caption="用户地址" Width="15%">
                                                    </dx:GridViewDataTextColumn>
                                                </Columns>
                                                <Settings VerticalScrollBarMode="Visible" HorizontalScrollBarMode="Auto" VerticalScrollableHeight="500" />
                                                <SettingsPager Mode="EndlessPaging" PageSize="100" />
                                                <Settings ShowFooter="True" />
                                                <SettingsBehavior AllowFocusedRow="True"  ColumnResizeMode="Control" />
                                                <SettingsBehavior ProcessFocusedRowChangedOnServer="false" />
                                                <%--<ClientSideEvents Init="function(s,e){AdjustSize(300,gvGridTab3);}" />--%>
                                            </dx:ASPxGridView>
                                        </div>
                                        <br />
                                        <hr />
                                        <div>
                                            <table style="text-align: right; width: 100%;">
                                                <tr>
                                                    <td style="width: 10%;"><span style="font-size: 12px;">打印日期：</span></td>
                                                   
                                                    <td style="width: 20%;">
                                                        <dx:ASPxDateEdit runat="server" ID="deDaYinRQ3" ClientInstanceName="deDaYinRQ3">
                                                            <CalendarProperties ClearButtonText="清除" TodayButtonText="今天"></CalendarProperties>
                                                        </dx:ASPxDateEdit>
                                                    </td>
                                                     <td>
                                                        <dx:ASPxButton runat="server" ID="btnYuLanTab3" Text="预览" >
                                                        </dx:ASPxButton>
                                                    </td>
                                                    <td>
                                                        <dx:ASPxButton runat="server" ID="btnDaYinTab3" Text="打印" >
                                                        </dx:ASPxButton>
                                                    </td> 
                                                </tr>
                                            </table>
                                        </div>
                                    </dx:ContentControl>
                                </ContentCollection>
                            </dx:TabPage>
                        </TabPages>
                    </dx:ASPxPageControl>
                </div>
            </ContentTemplate>
        </asp:UpdatePanel>
    </form>
</body>
</html>
